<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title>{#PageTitle#}</title>
		<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
		<meta name="keywords" content="url shortener,url short,url,link,tiny url,short url,shorten,shrink,hide,mask,cloak,protect,statistics,shortening,redirect,preview,domain,bookmark,widget,management,rating,keyword,group,expiration" />
		<meta name="description" content="Free URL shortening service. Shorten your long URLs with or without an account. Use your own domains with us, track your tiny link statistics, group them in a set of URLs. Use our API in your programs and create tiny URLs directly from your toolbar." />
		<link rel="stylesheet" type="text/css" href="/css/datepicker.css" />
		<link rel="stylesheet" type="text/css" href="/css/bluesky.css" />
		<link rel="stylesheet" type="text/css" href="/css/styles.css" />
		<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico" />
		<script type="text/javascript" src="/js/datepicker.js"></script>
		<script type="text/javascript" src="/js/functions.js"></script>
		<script type="text/javascript" src="/js/cookies.js"></script>
	</head>
	<body>
		<div id="page">
			{literal}{adodb_output}{/literal}
			<div id="header">
				<div class="title"><a href="/index.php">{#HeaderText#}{*#HeaderText#|spacify|replace:' ':'&nbsp;'*}</a></div>
				<div class="login_bar"><br />{if $user_authenticated}Welcome, <b>{$user_authenticated->getUsername()}</b>!{else}You are not logged in!{/if}</div>
				<div class="clear"></div>
			</div>
			<div id="main_wrapper">
				<div id="content">
					{if #DisplayGlobalStats#}
						<div id="stats_box">
							<h3>Global Stats</h3>
							<div class="inner_box">
								<p>
									&bull; <b>{$stats_urls.total|@number_format}</b> URL{if $stats_urls.total > 1}s{/if}
									[ <b>
											{if $stats_urls.today && $stats_urls.last_update == $smarty.now|date_format:'%Y-%m-%d'}
												{$stats_urls.today|@number_format}
											{else}
												0
											{/if}
									</b> Today ]<br />
									&bull; <b>{$stats_hits.total|@number_format}</b> Click{if $stats_hits.total > 1}s{/if}
									[ <b>
											{if $stats_hits.today && $stats_hits.last_update == $smarty.now|date_format:'%Y-%m-%d'}
												{$stats_hits.today|@number_format}
											{else}
												0
											{/if}
									</b> Today ]<br />
									&bull; <b>{$stats_users.total|@number_format}</b> User{if $stats_users.total > 1}s{/if}
									[ <b>
											{if $stats_users.today && $stats_users.last_update == $smarty.now|date_format:'%Y-%m-%d'}
												{$stats_users.today|@number_format}
											{else}
												0
											{/if}
									</b> Today ]
								</p>
							</div>
						</div>
						<div class="clear"></div>
					{/if}
					<div id="content_wrapper">